<?
        require_once('../inc/Item.php');
        if(isset($_POST['sav']))
        {
            $post = $_POST;
			$tar = "Location: index.php";
            $newrow = Create($post);
            header($tar);
            die();				
       	}	
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>New Item</title>
    <link rel="stylesheet" type="text/css" href="../inc/bootstrap.css">
    <style type="text/css" ">
        .error { color: red; }
    </style>
</head>

<body>
        <? include('../inc/header.php'); ?>
        <div class="container">
                        <? include('../inc/nav.php'); ?>
            <div id="contents">             
                <form class="form-horizontal" method="post" action="">
                    <div class=" control-group">
                        <label class="control-label" for="ProductName">Product Name:</label>
                        <div class="controls">
                            <input type="text" name="ProductName" id="ProductName" value="" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="ProductDescription">Product Description:</label>
                        <div class="controls">
                            <input type="text" name="ProductDescription" id="ProductDescription" value="" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="SKU">SKU:</label>
                        <div class="controls">
                            <input type="text" name="SKU" id="SKU" value="" />
                        </div>
                    </div>
					<div class="control-group">
                        <label class="control-label" for="Stock">Stock:</label>
                        <div class="controls">
                            <input type="text" name="Stock" id="Stock" value="" />
                        </div>
                    </div><div class="control-group">
                        <label class="control-label" for="Price">Price:</label>
                        <div class="controls">
                            <input type="text" name="Price" id="Price" value="" />
                        </div>
                    <input class="btn btn-primary" type="submit" value="Save" name="sav" />
                </form>
           </div>
       </div>
</body>
</html>